LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_ARM_MODE  := thumb
LOCAL_MODULE    := hookapi
LOCAL_SRC_FILES := ./JavaHook/DalvikMethodHook.cpp \
	./JavaHook/art_quick_proxy.S \
	./JavaHook/JavaMethodHook.cpp \
	./JavaHook/ArtMethodHook.cpp \
	./ElfHook/elfutils.cpp \
	./ElfHook/elfio.cpp \
	./ElfHook/elfhook.cpp \
	./main.cpp

LOCAL_ALLOW_UNDEFINED_SYMBOLS := true

LOCAL_LDLIBS += -L/home/firear/Opensource/ndk-patch/lib
LOCAL_LDLIBS += -llog  -landroid_runtime -lutils -lcutils
LOCAL_CFLAGS +=  -std=gnu++11 -fpermissive -I/home/firear/Opensource/ndk-patch/include -DDEBUG

include $(BUILD_SHARED_LIBRARY)
#include $(BUILD_EXECUTABLE)
